package part1.oo.ooday05.ooday05test;


public class StaticDemo {

    public static void main(String[] args) {
        //演示静态变量
        StaticVar var = new StaticVar();
        var.show();   //a=1,b=1
        StaticVar var1 = new StaticVar();
        var1.show();  //a=1,b=2

        //演示静态代码块
        StaticBlock block = new StaticBlock();
        StaticBlock block1 = new StaticBlock();
        StaticBlock block2 = new StaticBlock();

    }
}
